
<div class="row-fluid">
    <div class="span12">
        <div id="pagination" class="btn-group"><?= $pagination ?></div>
    </div>
</div>
<form action="<?= base_url() ?><?= get_segment(1) ?>/<?= get_segment(2) ?>/all" method="post" style="margin-bottom: 5px;" />
<div class="row-fluid">
    <div class="span12">
        <div  class="box">
            <div class="tab-header"> <?=lang('label_browser')?> [<?= get_segment(4) + $limit ?>/<?= $count ?>] </div>

            <div id='data_contant'>

                <table class="table">
                    <thead>
                        <tr>
                            <th><!--<input type="checkbox" id="checkall" name="all">--></th>
                            <th><?=lang('label_title')?></th>
                            <th><?=lang('label_image')?></th>



                            <th><?=lang('label_created_date')?></th>
                            <th><?=lang('label_add_by')?></th>
                            <th><?=lang('label_last_update')?></th>
                            <th><?=lang('label_user_update')?></th>
                            <th><?=lang('label_tool')?></th>
                        </tr>
                    </thead>
                     <tbody>
                    <?
                    foreach ($result as $value) {
                        $user = get_userdata_with_id($value->user_update, 'id,username')
                        ?>
                       
                            <tr class="gradeA">
                                <td><!--<input type="checkbox" class="checkall" value="<?=$value->id ?>" name="id[]">--></td>
                                <td>

                                    <a href="<?=base_url().ADMIN_FOLDER?>/payment/view/<?=$value->id ?>"><?=$value->title ?></a> 
                                </td>

                                <td>
                        <center><span title="<img src='<?= base_url() . PAYMENT_PATH . $value->file ?>' style='max-width:300px;' />" class="tip icon-camera" style="font-size:25px;"></span></center>
                        </td>
                        <td><?=  timespan($value->create_date )?></td>
                        <td>
                            <a href='<?= base_url() . ADMIN_FOLDER ?>/users/view/<?= $value->id ?>'><?= $value->username ?></a>

                        </td>
                        <td>
                            <?=  timespan($value->update_date )?>                 
                        </td>
                        <td>  
                            <?
                            if ($user['username']) {
                                ?>
                                <a href='<?= base_url() . ADMIN_FOLDER ?>/users/view/<?= $user['id'] ?>'><?= $user['username'] ?></a></td>
                            <?
                        } else {
                            ?>
                            -----
                            <?
                        }
                        ?>

                        </td>





                        <td class="center">
                            <div class="btn-group">
                                <button class="btn dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i>  <?=lang('label_operation')?> <span class="caret"></span></button>
                                <ul class="dropdown-menu">

                                    <li><a    href="<?= base_url() . ADMIN_FOLDER ?>/<?= get_segment(2) ?>/edit/<?= $value->id ?>"><i class="icon-edit"></i>  <?=lang('label_edit')?></a></li>
                                    <li><a  class="delete_confirm " href="<?= base_url() . ADMIN_FOLDER ?>/<?= get_segment(2) ?>/delete/<?= $value->id ?>"><i  class="icon-trash"></i> <?=lang('label_delete')?></a></li>
                                </ul>
                            </div>

                        </td>
                        </tr>
                    <? } ?>
                    </tbody>
                </table>

            </div>


        </div>
    </div>

</div>



</form>
<div class="row-fluid">
    <div class="span12">
        <div id="pagination" class="btn-group"><?= $pagination ?></div>
    </div>
</div>


